Release 10.1A: OpenEdge Development:
Web Services


Accessing a different port type in the same Web service

You can access a different port type in a Web service using the same server object handle, but only after disconnecting the server object from its current binding.

To access a different port type in a bound Web service using the same server object handle:

  1. Delete the procedure object mapped to the current port type, using the DELETE PROCEDURE or DELETE OBJECT statement.
  2. Unbind (logically disconnect) the server object handle from its current Web service binding using the DISCONNECT( ) method.
  3. Using the CONNECT( ) method on the same server object handle, bind the server object to the Web service using a binding that supports the next port type.
  4. Create and map a new procedure object to the next port type, using the RUN statement with the same server object handle, and, if you want, setting the same procedure object handle used to map the previous port type.

You can repeat this procedure for each port type you need to access in the same Web service, or you can map all of the Web service port types at one time using multiple server object and procedure object handles.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095